/*
 * @Author: your name
 * @Date: 2021-02-20 08:45:44
 * @LastEditTime: 2021-02-20 09:07:57
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \作业\day1-ly\index.js
 */
console.log('1')
setTimeout(()=>{
    console.log('2')
    new Promise((resolve, reject)=>{
        console.log('3')
        resolve()
    }).then(()=>{
        console.log('4')
    })
})

new Promise((resolve, reject)=>{
    resolve()
    console.log('6')
}).then(()=>{
    console.log('7')
})

setTimeout(()=>{
    console.log('8')
    new Promise((resolve, reject)=>{
        resolve()
        console.log('9')
    }).then(()=>{
        console.log('10')
    })
})

console.log('5')


